#ifndef MAINWINDOW_HH
#define MAINWINDOW_HH
#include "Gui.hh"
#include "../Network/GameList.hh"
#include <QtGui>
#include "ui_MainWindow.h"

class Gui::MainWindow: public QMainWindow {
    Q_OBJECT

    protected:

    public: MainWindow(QWidget *parent = 0);

    public slots: void show_game_list(
    		Network::GameList::GameListInfo gameListInfo);

    private: Ui::MainWindowClass ui;

    public slots: void new_game();

    protected slots: void send_new_game(QString name, u2 min, u2 max);

    signals: void send_new_game_message(QString name, u2 min, u2 max);

    public slots: void refresh();

    public slots: void send_chat_msg();

    public: void chat_msg_received(QString sender, QString msg);

    signals: void send_chat_msg_to_server(QString msg);

    signals: void refresh_game_list();

    signals: void join(QString);

    protected slots: void belepes(QListWidgetItem*);
};

#endif // MAINWINDOW_HH
